﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using LakeSide.IService;

namespace LakeSide.Web
{
    /// <summary>
    /// 初始化系统
    /// </summary>
    public class InitAppConfig
    {
        /// <summary>
        /// 程序初始化，基本数据初始化
        /// </summary>
        /// <returns></returns>
        public static bool Init()
        {
            
            bool flag = false;
            var _iAppInitService = DependencyResolver.Current.GetService<IAppInit>();
            if(!_iAppInitService.IsInit())
                _iAppInitService.Init();
            return flag;
        }
    }

}